"use strict";(self.webpackChunkpeaches=self.webpackChunkpeaches||[]).push([[6527],{11299:function(e,t,r){r.d(t,{yN:function(){return dep},LV:function(){return wrap}});var n,defaultMakeData=function(){return Object.create(null)},i=Array.prototype,o=i.forEach,a=i.slice,s=function(){function Trie(e,t){void 0===e&&(e=!0),void 0===t&&(t=defaultMakeData),this.weakness=e,this.makeData=t}return Trie.prototype.lookup=function(){for(var e=[],t=0;tthis.max;)this.delete(this.oldest.key)},Cache.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},Cache}(),l=new c.DX,f=Object.prototype.hasOwnProperty,p=void 0===(n=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:n;function maybeUnsubscribe(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var h=[];function assert(e,t){if(!e)throw Error(t||"assertion failure")}function valueGet(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var d=function(){function Entry(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Entry.count}return Entry.prototype.peek=function(){if(1===this.value.length&&!mightBeDirty(this))return rememberParent(this),this.value[0]},Entry.prototype.recompute=function(e){var t;return assert(!this.recomputing,"already recomputing"),rememberParent(this),mightBeDirty(this)&&(forgetChildren(this),l.withValue(this,recomputeNewValue,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{maybeUnsubscribe(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,mightBeDirty(this)||(t=this,eachParent(t,reportCleanChild)))),valueGet(this.value)},Entry.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,eachParent(this,reportDirtyChild),maybeUnsubscribe(this))},Entry.prototype.dispose=function(){var e=this;this.setDirty(),forgetChildren(this),eachParent(this,function(t,r){t.setDirty(),forgetChild(t,e)})},Entry.prototype.forget=function(){this.dispose()},Entry.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=h.pop()||new Set),this.deps.add(e)},Entry.prototype.forgetDeps=function(){var e=this;this.deps&&(p(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),h.push(this.deps),this.deps=null)},Entry.count=0,Entry}();function rememberParent(e){var t=l.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),mightBeDirty(e)?reportDirtyChild(t,e):reportCleanChild(t,e),t}function recomputeNewValue(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function mightBeDirty(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function eachParent(e,t){var r=e.parents.size;if(r)for(var n=p(e.parents),i=0;i0&&n===r.length&&i[n-1]===r[n-1]||e.setDirty()),removeDirtyChild(e,t),mightBeDirty(e)||eachParent(e,reportCleanChild)}function removeDirtyChild(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(h.length<100&&h.push(r),e.dirtyChildren=null))}function forgetChildren(e){e.childValues.size>0&&e.childValues.forEach(function(t,r){forgetChild(e,r)}),e.forgetDeps(),assert(null===e.dirtyChildren)}function forgetChild(e,t){t.parents.delete(e),e.childValues.delete(t),removeDirtyChild(e,t)}var y={setDirty:!0,dispose:!0,forget:!0};function dep(e){var t=new Map,r=e&&e.subscribe;function depend(e){var n=l.getValue();if(n){var i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(maybeUnsubscribe(i),i.unsubscribe=r(e))}}return depend.dirty=function(e,r){var n=t.get(e);if(n){var i=r&&f.call(y,r)?r:"setDirty";p(n).forEach(function(e){return e[i]()}),t.delete(e),maybeUnsubscribe(n)}},depend}function makeDefaultMakeCacheKeyFunction(){var e=new s("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}makeDefaultMakeCacheKeyFunction();var v=new Set;function wrap(e,t){void 0===t&&(t=Object.create(null));var r=new u(t.max||65536,function(e){return e.dispose()}),n=t.keyArgs,i=t.makeCacheKey||makeDefaultMakeCacheKeyFunction(),optimistic=function(){var o=i.apply(null,n?n.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=r.get(o);a||(r.set(o,a=new d(e)),a.subscribe=t.subscribe,a.forget=function(){return r.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return r.set(o,a),v.add(r),l.hasValue()||(v.forEach(function(e){return e.clean()}),v.clear()),s};function dirtyKey(e){var t=r.get(e);t&&t.setDirty()}function peekKey(e){var t=r.get(e);if(t)return t.peek()}function forgetKey(e){return r.delete(e)}return Object.defineProperty(optimistic,"size",{get:function(){return r.map.size},configurable:!1,enumerable:!1}),optimistic.dirtyKey=dirtyKey,optimistic.dirty=function(){dirtyKey(i.apply(null,arguments))},optimistic.peekKey=peekKey,optimistic.peek=function(){return peekKey(i.apply(null,arguments))},optimistic.forgetKey=forgetKey,optimistic.forget=function(){return forgetKey(i.apply(null,arguments))},optimistic.makeCacheKey=i,optimistic.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(optimistic)}},42495:function(e,t,r){r.d(t,{k:function(){return a}});var n=r(18271),i=r(11299),o=r(2904),a=function(){function ApolloCache(){this.getFragmentDoc=(0,i.LV)(o.ct)}return ApolloCache.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},ApolloCache.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},ApolloCache.prototype.transformDocument=function(e){return e},ApolloCache.prototype.transformForLink=function(e){return e},ApolloCache.prototype.identify=function(e){},ApolloCache.prototype.gc=function(){return[]},ApolloCache.prototype.modify=function(e){return!1},ApolloCache.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,n.Cl)((0,n.Cl)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},ApolloCache.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,n.Cl)((0,n.Cl)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},ApolloCache.prototype.writeQuery=function(e){var t=e.id,r=e.data,i=(0,n.Tt)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:r}))},ApolloCache.prototype.writeFragment=function(e){var t=e.id,r=e.data,i=e.fragment,o=e.fragmentName,a=(0,n.Tt)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:t,result:r}))},ApolloCache.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var i=r.readQuery(e),o=t(i);return null==o?i:(r.writeQuery((0,n.Cl)((0,n.Cl)({},e),{data:o})),o)}})},ApolloCache.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var i=r.readFragment(e),o=t(i);return null==o?i:(r.writeFragment((0,n.Cl)((0,n.Cl)({},e),{data:o})),o)}})},ApolloCache}()},65702:function(e,t,r){r.d(t,{Z:function(){return i}});var n=r(18271),i=function(e){function MissingFieldError(t,r,n,i){var o,a=e.call(this,t)||this;if(a.message=t,a.path=r,a.query=n,a.variables=i,Array.isArray(a.path)){a.missing=a.message;for(var s=a.path.length-1;s>=0;--s)a.missing=((o={})[a.path[s]]=a.missing,o)}else a.missing=a.path;return a.__proto__=MissingFieldError.prototype,a}return(0,n.C6)(MissingFieldError,e),MissingFieldError}(Error)},35207:function(e,t,r){r.d(t,{$3:function(){return f},I6:function(){return normalizeConfig},T9:function(){return function selectionSetMatchesResult(e,t,r){return!!(0,o.U)(t)&&((0,a.c)(t)?t.every(function(t){return selectionSetMatchesResult(e,t,r)}):e.selections.every(function(e){if((0,i.dt)(e)&&(0,s.MS)(e,r)){var n=(0,i.ue)(e);return f.call(t,n)&&(!e.selectionSet||selectionSetMatchesResult(e.selectionSet,t[n],r))}return!0}))}},Ui:function(){return getTypenameFromStoreObject},Xx:function(){return shouldCanonizeResults},d1:function(){return storeValueIsStoreObject},gk:function(){return h},iJ:function(){return fieldNameFromStoreName},lq:function(){return extractFragmentContext},mv:function(){return makeProcessedFieldsMerger},or:function(){return defaultDataIdFromObject}});var n=r(50492),i=r(28907),o=r(21777),a=r(73767),s=r(82307),c=r(30671),u=r(2904),l=r(3777),f=Object.prototype.hasOwnProperty;function isNullish(e){return null==e}function defaultDataIdFromObject(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=isNullish(n)?isNullish(i)?void 0:{_id:i}:{id:n}),isNullish(n)&&!isNullish(i)&&(n=i),!isNullish(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var p={dataIdFromObject:defaultDataIdFromObject,addTypename:!0,resultCaching:!0,canonizeResults:!1};function normalizeConfig(e){return(0,n.o)(p,e)}function shouldCanonizeResults(e){var t=e.canonizeResults;return void 0===t?p.canonizeResults:t}function getTypenameFromStoreObject(e,t){return(0,i.A_)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var h=/^[_a-z][_0-9a-z]*/i;function fieldNameFromStoreName(e){var t=e.match(h);return t?t[0]:e}function storeValueIsStoreObject(e){return(0,o.U)(e)&&!(0,i.A_)(e)&&!(0,a.c)(e)}function makeProcessedFieldsMerger(){return new c.ZI}function extractFragmentContext(e,t){var r=(0,u.JG)((0,l.zK)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}},66285:function(e,t,r){r.d(t,{D:function(){return N}});var n,i,o=r(18271),a=r(34412),s=r(11299),c=r(55888),u=r(42495),l=r(65702),f=r(28907),p=r(53925),h=r(42455),d=r(51360),y=r(50492),v=r(3777),m=r(30671),b=r(82307),g=r(2904),_=r(57236),w=r(21777),C=r(44592),S=r(35207),k=Object.create(null),delModifier=function(){return k},O=Object.create(null),E=function(){function EntityStore(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,_.G)((0,f.A_)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,f.A_)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,f.WU)(e);if((0,f.A_)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,f.WU)(n);return t&&r.merge(n,e),i}}}return EntityStore.prototype.toObject=function(){return(0,o.Cl)({},this.data)},EntityStore.prototype.has=function(e){return void 0!==this.lookup(e,!0)},EntityStore.prototype.get=function(e,t){if(this.group.depend(e,t),S.$3.call(this.data,e)){var r=this.data[e];if(r&&S.$3.call(r,t))return r[t]}return"__typename"===t&&S.$3.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof D?this.parent.get(e,t):void 0},EntityStore.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),S.$3.call(this.data,e))?this.data[e]:this instanceof D?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},EntityStore.prototype.merge=function(e,t){var r,n=this;(0,f.A_)(e)&&(e=e.__ref),(0,f.A_)(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(r=e):e,o="string"==typeof t?this.lookup(r=t):t;if(o){__DEV__?(0,a.V1)("string"==typeof r,"store.merge expects a string ID"):(0,a.V1)("string"==typeof r,1);var s=new m.ZI(storeObjectReconciler).merge(i,o);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){var c=Object.create(null);i||(c.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==s[e]){c[e]=1;var t=(0,S.iJ)(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(c[t]=1),void 0!==s[e]||n instanceof D||delete s[e]}}),c.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete c.__typename,Object.keys(c).forEach(function(e){return n.group.dirty(r,e)})}}},EntityStore.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),a=!1,s=!0,c={DELETE:k,INVALIDATE:O,isReference:f.A_,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,f.WU)(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(u){var l=(0,S.iJ)(u),f=n[u];if(void 0!==f){var p="function"==typeof t?t:t[u]||t[l];if(p){var h=p===delModifier?k:p((0,_.G)(f),(0,o.Cl)((0,o.Cl)({},c),{fieldName:l,storeFieldName:u,storage:r.getStorage(e,u)}));h===O?r.group.dirty(e,u):(h===k&&(h=void 0),h!==f&&(i[u]=h,a=!0,f=h))}void 0!==f&&(s=!1)}}),a)return this.merge(e,i),s&&(this instanceof D?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},EntityStore.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=delModifier,n):delModifier)}return!1},EntityStore.prototype.evict=function(e,t){var r=!1;return e.id&&(S.$3.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof D&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},EntityStore.prototype.clear=function(){this.replace(null)},EntityStore.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){S.$3.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},EntityStore.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&S.$3.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,o.Tt)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},EntityStore.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},EntityStore.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},EntityStore.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof D?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},EntityStore.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){S.$3.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof D;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},EntityStore.prototype.findChildRefIds=function(e){if(!S.$3.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,f.A_)(e)&&(t[e.__ref]=!0),(0,w.U)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,w.U)(r)&&n.add(r)})})}return this.refs[e]},EntityStore.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},EntityStore}(),F=function(){function CacheGroup(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return CacheGroup.prototype.resetCaching=function(){this.d=this.caching?(0,s.yN)():null,this.keyMaker=new C.b(d.et)},CacheGroup.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=(0,S.iJ)(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},CacheGroup.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},CacheGroup}();function maybeDependOnExistenceOfEntity(e,t){supportsResultCaching(e)&&e.group.depend(t,"__exists")}i=function(e){function Root(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new F(void 0===n||n))||this;return o.stump=new R(o),o.storageTrie=new C.b(d.et),i&&o.replace(i),o}return(0,o.C6)(Root,e),Root.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},Root.prototype.removeLayer=function(){return this},Root.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},Root}(n=E||(E={})),n.Root=i;var D=function(e){function Layer(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,o.C6)(Layer,e),Layer.prototype.addLayer=function(e,t){return new Layer(e,this,t,this.group)},Layer.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,c.L)(n[r],i[r])||t.group.dirty(e,r)}):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},Layer.prototype.toObject=function(){return(0,o.Cl)((0,o.Cl)({},this.parent.toObject()),this.data)},Layer.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return S.$3.call(this.data,t)?(0,o.Cl)((0,o.Cl)({},r),e.prototype.findChildRefIds.call(this,t)):r},Layer.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},Layer}(E),R=function(e){function Stump(t){return e.call(this,"EntityStore.Stump",t,function(){},new F(t.group.caching,t.group))||this}return(0,o.C6)(Stump,e),Stump.prototype.removeLayer=function(){return this},Stump.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},Stump}(D);function storeObjectReconciler(e,t,r){var n=e[r],i=t[r];return(0,c.L)(n,i)?n:i}function supportsResultCaching(e){return!!(e instanceof E&&e.group.caching)}var M=r(73767),x=r(68717);function execSelectionSetKeyArgs(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var I=function(){function StoreReader(e){var t=this;this.knownResults=new(d.et?WeakMap:Map),this.config=(0,y.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,S.Xx)(e)}),this.canon=e.canon||new x.$,this.executeSelectionSet=(0,s.LV)(function(e){var r,n=e.context.canonizeResults,i=execSelectionSetKeyArgs(e);i[3]=!n;var a=(r=t.executeSelectionSet).peek.apply(r,i);return a?n?(0,o.Cl)((0,o.Cl)({},a),{result:t.canon.admit(a.result)}):a:(maybeDependOnExistenceOfEntity(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:execSelectionSetKeyArgs,makeCacheKey:function(e,t,r,n){if(supportsResultCaching(r.store))return r.store.makeCacheKey(e,(0,f.A_)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,s.LV)(function(e){return maybeDependOnExistenceOfEntity(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(supportsResultCaching(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return StoreReader.prototype.resetCanon=function(){this.canon=new x.$},StoreReader.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,n=e.query,i=e.rootId,a=void 0===i?"ROOT_QUERY":i,s=e.variables,c=e.returnPartialData,u=e.canonizeResults,p=void 0===u?this.config.canonizeResults:u,h=this.config.cache.policies;s=(0,o.Cl)((0,o.Cl)({},(0,v.wY)((0,v.AT)(n))),s);var d=(0,f.WU)(a),y=this.executeSelectionSet({selectionSet:(0,v.Vn)(n).selectionSet,objectOrReference:d,enclosingRef:d,context:(0,o.Cl)({store:r,query:n,policies:h,variables:s,varString:(0,x.M)(s),canonizeResults:p},(0,S.lq)(n,this.config.fragments))});if(y.missing&&(t=[new l.Z(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(y.missing),y.missing,n,s)],!(void 0===c||c)))throw t[0];return{result:y.result,complete:!t,missing:t}},StoreReader.prototype.isFresh=function(e,t,r,n){if(supportsResultCaching(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},StoreReader.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,s=e.context;if((0,f.A_)(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var c=s.variables,u=s.policies,l=s.store.getFieldValue(i,"__typename"),d=[],y=new m.ZI;function handleMissing(e,r){var n;return e.missing&&(t=y.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof l&&!u.rootIdsByTypename[l]&&d.push({__typename:l});var v=new Set(n.selections);v.forEach(function(e){var n,m;if((0,b.MS)(e,c)){if((0,f.dt)(e)){var _=u.readField({fieldName:e.name.value,field:e,variables:s.variables,from:i},s),w=(0,f.ue)(e);void 0===_?p.XY.added(e)||(t=y.merge(t,((n={})[w]="Can't find field '".concat(e.name.value,"' on ").concat((0,f.A_)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):(0,M.c)(_)?_=handleMissing(r.executeSubSelectedArray({field:e,array:_,enclosingRef:o,context:s}),w):e.selectionSet?null!=_&&(_=handleMissing(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:_,enclosingRef:(0,f.A_)(_)?_:o,context:s}),w)):s.canonizeResults&&(_=r.canon.pass(_)),void 0!==_&&d.push(((m={})[w]=_,m))}else{var C=(0,g.HQ)(e,s.lookupFragment);if(!C&&e.kind===h.b.FRAGMENT_SPREAD)throw __DEV__?new a.zU("No fragment named ".concat(e.name.value)):new a.zU(5);C&&u.fragmentMatches(C,l)&&C.selectionSet.selections.forEach(v.add,v)}}});var w={result:(0,m.IM)(d),missing:t},C=s.canonizeResults?this.canon.admit(w):(0,_.G)(w);return C.result&&this.knownResults.set(C.result,n),C},StoreReader.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,s=e.context,c=new m.ZI;function handleMissing(e,r){var n;return e.missing&&(t=c.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,M.c)(e)?handleMissing(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:s}),t):n.selectionSet?handleMissing(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,f.A_)(e)?e:o,context:s}),t):(__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,w.U)(r)&&(__DEV__?(0,a.V1)(!(0,f.A_)(r),"Missing selection set for object of type ".concat((0,S.Ui)(e,r)," returned for query field ").concat(t.name.value)):(0,a.V1)(!(0,f.A_)(r),6),Object.values(r).forEach(n.add,n))})}}(s.store,n,e),e)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:t}},StoreReader}(),Q=r(20906),A=r(21461),P=r(777),T=Object.create(null);function lookupSpecifierInfo(e){var t=JSON.stringify(e);return T[t]||(T[t]=Object.create(null))}function keyFieldsFnFromSpecifier(e){var t=lookupSpecifierInfo(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var extract=function(e,t){return r.readField(t,e)},n=r.keyObject=collectSpecifierPaths(e,function(e){var n=extractKeyPath(r.storeObject,e,extract);return void 0===n&&t!==r.storeObject&&S.$3.call(t,e[0])&&(n=extractKeyPath(t,e,extractKey)),__DEV__?(0,a.V1)(void 0!==n,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):(0,a.V1)(void 0!==n,2),n});return"".concat(r.typename,":").concat(JSON.stringify(n))})}function keyArgsFnFromSpecifier(e){var t=lookupSpecifierInfo(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=JSON.stringify(collectSpecifierPaths(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&(0,M.E)(n.directives)){var a=r.slice(1),s=n.directives.find(function(e){return e.name.value===a}),c=s&&(0,f.MB)(s,i);return c&&extractKeyPath(c,e.slice(1))}return}if("$"===o){var u=r.slice(1);if(i&&S.$3.call(i,u)){var l=e.slice(0);return l[0]=u,extractKeyPath(i,l)}return}if(t)return extractKeyPath(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function collectSpecifierPaths(e,t){var r=new m.ZI;return(function getSpecifierPaths(e){var t=lookupSpecifierInfo(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach(function(t,i){(0,M.c)(t)?(getSpecifierPaths(t).forEach(function(e){return r.push(n.concat(e))}),n.length=0):(n.push(t),(0,M.c)(e[i+1])||(r.push(n.slice(0)),n.length=0))})}return t.paths})(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function extractKey(e,t){return e[t]}function extractKeyPath(e,t,r){return r=r||extractKey,function normalize(e){return(0,w.U)(e)?(0,M.c)(e)?e.map(normalize):collectSpecifierPaths(Object.keys(e).sort(),function(t){return extractKeyPath(e,t)}):e}(t.reduce(function reducer(e,t){return(0,M.c)(e)?e.map(function(e){return reducer(e,t)}):e&&r(e,t)},e))}function argsFromFieldSpecifier(e){return void 0!==e.args?e.args:e.field?(0,f.MB)(e.field,e.variables):null}f.o5.setStringify(x.M);var nullKeyFieldsFn=function(){},simpleKeyArgsFn=function(e,t){return t.fieldName},mergeTrueFn=function(e,t,r){return(0,r.mergeObjects)(e,t)},mergeFalseFn=function(e,t){return t},V=function(){function Policies(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,o.Cl)({dataIdFromObject:S.or},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return Policies.prototype.identify=function(e,t){var r,n,i=this,a=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s=t&&t.storeObject||e,c=(0,o.Cl)((0,o.Cl)({},t),{typename:a,storeObject:s,readField:t&&t.readField||function(){var e=normalizeReadFieldOptions(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),u=a&&this.getTypePolicy(a),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var f=l((0,o.Cl)((0,o.Cl)({},e),s),c);if((0,M.c)(f))l=keyFieldsFnFromSpecifier(f);else{n=f;break}}return n=n?String(n):void 0,c.keyObject?[n,c.keyObject]:[n]},Policies.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,a=n.mutationType,s=n.subscriptionType,c=(0,o.Tt)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),S.$3.call(t.toBeAdded,r)?t.toBeAdded[r].push(c):t.toBeAdded[r]=[c]})},Policies.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function setMerge(e,t){e.merge="function"==typeof t?t:!0===t?mergeTrueFn:!1===t?mergeFalseFn:e.merge}setMerge(n,t.merge),n.keyFn=!1===i?nullKeyFieldsFn:(0,M.c)(i)?keyFieldsFnFromSpecifier(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach(function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var a=i.keyArgs,s=i.read,c=i.merge;n.keyFn=!1===a?simpleKeyArgsFn:(0,M.c)(a)?keyArgsFnFromSpecifier(a):"function"==typeof a?a:n.keyFn,"function"==typeof s&&(n.read=s),setMerge(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||simpleKeyArgsFn)})},Policies.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(__DEV__?(0,a.V1)(!n||n===e,"Cannot change root ".concat(e," __typename more than once")):(0,a.V1)(!n||n===e,3),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},Policies.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(S.gk);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},Policies.prototype.getTypePolicy=function(e){var t=this;if(!S.$3.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields;Object.assign(r,(0,o.Tt)(n,["fields"])),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},Policies.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},Policies.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},Policies.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),c=[s],maybeEnqueue_1=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>c.indexOf(t)&&c.push(t)},u=!!(r&&this.fuzzySubtypes.size),l=!1,f=0;f1?u:t}:(s=(0,o.Cl)({},c),S.$3.call(s,"from")||(s.from=t)),__DEV__&&void 0===s.from&&__DEV__&&a.V1.warn("Undefined 'from' passed to readField with arguments ".concat((n=Array.from(e),i=(0,A.v)("stringifyForDisplay"),JSON.stringify(n,function(e,t){return void 0===t?i:t}).split(JSON.stringify(i)).join("")))),void 0===s.variables&&(s.variables=r),s}function makeMergeObjectsFunction(e){return function(t,r){if((0,M.c)(t)||(0,M.c)(r))throw __DEV__?new a.zU("Cannot automatically merge arrays"):new a.zU(4);if((0,w.U)(t)&&(0,w.U)(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if((0,f.A_)(t)&&(0,S.d1)(r))return e.merge(t.__ref,r),t;if((0,S.d1)(t)&&(0,f.A_)(r))return e.merge(t,r.__ref),r;if((0,S.d1)(t)&&(0,S.d1)(r))return(0,o.Cl)((0,o.Cl)({},t),r)}return r}}function getContextFlavor(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:(0,o.Cl)((0,o.Cl)({},e),{clientOnly:t,deferred:r})),i}var j=function(){function StoreWriter(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return StoreWriter.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,s=t.dataId,u=t.variables,l=t.overwrite,p=(0,v.Vu)(n),h=(0,S.mv)();u=(0,o.Cl)((0,o.Cl)({},(0,v.wY)(p)),u);var d=(0,o.Cl)((0,o.Cl)({store:e,written:Object.create(null),merge:function(e,t){return h.merge(e,t)},variables:u,varString:(0,x.M)(u)},(0,S.lq)(n,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),y=this.processSelectionSet({result:i||Object.create(null),dataId:s,selectionSet:p.selectionSet,mergeTree:{map:new Map},context:d});if(!(0,f.A_)(y))throw __DEV__?new a.zU("Could not identify object ".concat(JSON.stringify(i))):new a.zU(7);return d.incomingById.forEach(function(t,n){var i=t.storeObject,o=t.mergeTree,s=t.fieldNodeSet,u=(0,f.WU)(n);if(o&&o.map.size){var l=r.applyMerges(o,u,i,d);if((0,f.A_)(l))return;i=l}if(__DEV__&&!d.overwrite){var p=Object.create(null);s.forEach(function(e){e.selectionSet&&(p[e.name.value]=!0)});var hasMergeFunction_1=function(e){var t=o&&o.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==p[(0,S.iJ)(e)]||hasMergeFunction_1(e)||function(e,t,r,n){var getChild=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},i=getChild(e);if(i){var o=getChild(t);if(!(!o||(0,f.A_)(i)||(0,c.L)(i,o)||Object.keys(i).every(function(e){return void 0!==n.getFieldValue(o,e)}))){var s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),u=(0,S.iJ)(r),l="".concat(s,".").concat(u);if(!L.has(l)){L.add(l);var p=[];(0,M.c)(i)||(0,M.c)(o)||[i,o].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||p.includes(t)||p.push(t)}),__DEV__&&a.V1.warn("Cache data may be lost when replacing the ".concat(u," field of a ").concat(s," object.\n\nThis could cause additional (usually avoidable) network requests to fetch data that were otherwise cached.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(l," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(i).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(o).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(u,i,e,d.store)})}e.merge(n,i)}),e.retain(y.__ref),y},StoreWriter.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,s=e.context,c=e.mergeTree,u=this.cache.policies,l=Object.create(null),h=r&&u.rootTypenamesById[r]||(0,f.D$)(n,i,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof h&&(l.__typename=h);var readField=function(){var e=normalizeReadFieldOptions(arguments,l,s.variables);if((0,f.A_)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=u.readField((0,o.Cl)((0,o.Cl)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return u.readField(e,s)},d=new Set;this.flattenFields(i,n,s,h).forEach(function(e,r){var i,o=n[(0,f.ue)(r)];if(d.add(r),void 0!==o){var s=u.getStoreFieldName({typename:h,fieldName:r.name.value,field:r,variables:e.variables}),y=getChildMergeTree(c,s),v=t.processFieldValue(o,r,r.selectionSet?getContextFlavor(e,!1,!1):e,y),m=void 0;r.selectionSet&&((0,f.A_)(v)||(0,S.d1)(v))&&(m=readField("__typename",v));var b=u.getMergeFunction(h,r.name.value,m);b?y.info={field:r,typename:h,merge:b}:maybeRecycleChildMergeTree(c,s),l=e.merge(l,((i={})[s]=v,i))}else __DEV__&&!e.clientOnly&&!e.deferred&&!p.XY.added(r)&&!u.getReadFunction(h,r.name.value)&&__DEV__&&a.V1.error("Missing field '".concat((0,f.ue)(r),"' while writing result ").concat(JSON.stringify(n,null,2)).substring(0,1e3))});try{var y=u.identify(n,{typename:h,selectionSet:i,fragmentMap:s.fragmentMap,storeObject:l,readField:readField}),v=y[0],m=y[1];r=r||v,m&&(l=s.merge(l,m))}catch(e){if(!r)throw e}if("string"==typeof r){var b=(0,f.WU)(r),g=s.written[r]||(s.written[r]=[]);if(g.indexOf(i)>=0||(g.push(i),this.reader&&this.reader.isFresh(n,b,i,s)))return b;var _=s.incomingById.get(r);return _?(_.storeObject=s.merge(_.storeObject,l),_.mergeTree=function mergeMergeTrees(e,t){if(e===t||!t||mergeTreeIsEmpty(t))return e;if(!e||mergeTreeIsEmpty(e))return t;var r=e.info&&t.info?(0,o.Cl)((0,o.Cl)({},e.info),t.info):e.info||t.info,n=e.map.size&&t.map.size,i={info:r,map:n?new Map:e.map.size?e.map:t.map};if(n){var a=new Set(t.map.keys());e.map.forEach(function(e,r){i.map.set(r,mergeMergeTrees(e,t.map.get(r))),a.delete(r)}),a.forEach(function(r){i.map.set(r,mergeMergeTrees(t.map.get(r),e.map.get(r)))})}return i}(_.mergeTree,c),d.forEach(function(e){return _.fieldNodeSet.add(e)})):s.incomingById.set(r,{storeObject:l,mergeTree:mergeTreeIsEmpty(c)?void 0:c,fieldNodeSet:d}),b}return l},StoreWriter.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,M.c)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,getChildMergeTree(n,o));return maybeRecycleChildMergeTree(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):__DEV__?(0,Q.m)(e):e},StoreWriter.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,f.D$)(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,s=new C.b(!1);return function flatten(e,c){var u=s.lookup(e,c.clientOnly,c.deferred);u.visited||(u.visited=!0,e.selections.forEach(function(e){if((0,b.MS)(e,r.variables)){var s=c.clientOnly,u=c.deferred;if(!(s&&u)&&(0,M.E)(e.directives)&&e.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var n=(0,f.MB)(e,r.variables);n&&!1===n.if||(u=!0)}}),(0,f.dt)(e)){var l=i.get(e);l&&(s=s&&l.clientOnly,u=u&&l.deferred),i.set(e,getContextFlavor(r,s,u))}else{var p=(0,g.HQ)(e,r.lookupFragment);if(!p&&e.kind===h.b.FRAGMENT_SPREAD)throw __DEV__?new a.zU("No fragment named ".concat(e.name.value)):new a.zU(8);p&&o.fragmentMatches(p,n,t,r.variables)&&flatten(p.selectionSet,getContextFlavor(r,s,u))}}}))}(e,r),i},StoreWriter.prototype.applyMerges=function(e,t,r,n,i){var s=this;if(e.map.size&&!(0,f.A_)(r)){var c,u,l=!(0,M.c)(r)&&((0,f.A_)(t)||(0,S.d1)(t))?t:void 0,p=r;l&&!i&&(i=[(0,f.A_)(l)?l.__ref:l]);var getValue_1=function(e,t){return(0,M.c)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=getValue_1(l,t),o=getValue_1(p,t);if(void 0!==o){i&&i.push(t);var c=s.applyMerges(e,r,o,n,i);c!==o&&(u=u||new Map).set(t,c),i&&(0,a.V1)(i.pop()===t)}}),u&&(r=(0,M.c)(p)?p.slice(0):(0,o.Cl)({},p),u.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(c=n.store).getStorage.apply(c,i)):r},StoreWriter}(),q=[];function getChildMergeTree(e,t){var r=e.map;return r.has(t)||r.set(t,q.pop()||{map:new Map}),r.get(t)}function mergeTreeIsEmpty(e){return!e||!(e.info||e.map.size)}function maybeRecycleChildMergeTree(e,t){var r=e.map,n=r.get(t);n&&mergeTreeIsEmpty(n)&&(q.push(n),r.delete(t))}var L=new Set,N=function(e){function InMemoryCache(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=P.UT,r.txCount=0,r.config=(0,S.I6)(t),r.addTypename=!!r.config.addTypename,r.policies=new V({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,o.C6)(InMemoryCache,e),InMemoryCache.prototype.init=function(){var e=this.data=new E.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},InMemoryCache.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new j(this,this.storeReader=new I({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,S.Xx)(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,s.LV)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(supportsResultCaching(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,x.M)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},InMemoryCache.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},InMemoryCache.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},InMemoryCache.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,o.Cl)((0,o.Cl)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof l.Z)return null;throw e}},InMemoryCache.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.modify=function(e){if(S.$3.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,o.Cl)((0,o.Cl)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},InMemoryCache.prototype.watch=function(e){var t=this;return this.watches.size||(0,P.MS)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,P.WR)(t),t.maybeBroadcastWatch.forget(e)}},InMemoryCache.prototype.gc=function(e){x.M.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},InMemoryCache.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},InMemoryCache.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},InMemoryCache.prototype.identify=function(e){if((0,f.A_)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&a.V1.warn(e)}},InMemoryCache.prototype.evict=function(e){if(!e.id){if(S.$3.call(e,"id"))return!1;e=(0,o.Cl)((0,o.Cl)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.reset=function(e){var t=this;return this.init(),x.M.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,P.WR)(this)):this.broadcastWatches(),Promise.resolve()},InMemoryCache.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},InMemoryCache.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,a=void 0===i||i,s=e.removeOptimistic,c=e.onWatchUpdated,perform=function(e){var i=r.data,o=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}},u=new Set;return c&&!this.txCount&&this.broadcastWatches((0,o.Cl)((0,o.Cl)({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,perform):!1===a?perform(this.data):perform(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),c&&u.size?(this.broadcastWatches((0,o.Cl)((0,o.Cl)({},e),{onWatchUpdated:function(e,t){var r=c.call(this,e,t);return!1!==r&&u.delete(e),r}})),u.size&&u.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},InMemoryCache.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},InMemoryCache.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=(0,p.XY)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},InMemoryCache.prototype.transformForLink=function(e){var t=this.config.fragments;return t?t.transform(e):e},InMemoryCache.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},InMemoryCache.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,c.L)(r.result,n.result)||e.callback(e.lastDiff=n,r))},InMemoryCache}(u.k)},68717:function(e,t,r){r.d(t,{$:function(){return l},M:function(){return f}});var n,i,o=r(18271);r(34412);var a=r(44592),s=r(21777),c=r(51360),u=r(73767),l=function(){function ObjectCanon(){this.known=new(c.En?WeakSet:Set),this.pool=new a.b(c.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return ObjectCanon.prototype.isKnown=function(e){return(0,s.U)(e)&&this.known.has(e)},ObjectCanon.prototype.pass=function(e){if((0,s.U)(e)){var t=(0,s.U)(e)?(0,u.c)(e)?e.slice(0):(0,o.Cl)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},ObjectCanon.prototype.admit=function(e){var t=this;if((0,s.U)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return!i.array&&(this.known.add(i.array=n),__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],c=this.sortedKeys(e);a.push(c.json);var u=a.length;c.sorted.forEach(function(r){a.push(t.admit(e[r]))});var i=this.pool.lookupArray(a);if(!i.object){var l=i.object=Object.create(o);this.known.add(l),c.sorted.forEach(function(e,t){l[e]=a[u+t]}),__DEV__&&Object.freeze(l)}return i.object}}return e},ObjectCanon.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},ObjectCanon}(),f=Object.assign(function(e){if((0,s.U)(e)){void 0===n&&resetCanonicalStringify();var t=n.admit(e),r=i.get(t);return void 0===r&&i.set(t,r=JSON.stringify(t)),r}return JSON.stringify(e)},{reset:resetCanonicalStringify});function resetCanonicalStringify(){n=new l,i=new(c.et?WeakMap:Map)}},777:function(e,t,r){r.d(t,{MS:function(){return recallCache},UT:function(){return makeVar},WR:function(){return forgetCache},bl:function(){return i}});var n=r(11299),i=new(r(58393)).DX,o=new WeakMap;function getCacheInfo(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.yN)()}),t}function forgetCache(e){getCacheInfo(e).vars.forEach(function(t){return t.forgetCache(e)})}function recallCache(e){getCacheInfo(e).vars.forEach(function(t){return t.attachCache(e)})}function makeVar(e){var t=new Set,r=new Set,rv=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){getCacheInfo(e).dep.dirty(rv),e.broadcastWatches&&e.broadcastWatches()});var a=Array.from(r);r.clear(),a.forEach(function(t){return t(e)})}}else{var s=i.getValue();s&&(n(s),getCacheInfo(s).dep(rv))}return e};rv.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var n=rv.attachCache=function(e){return t.add(e),getCacheInfo(e).vars.add(rv),rv};return rv.forgetCache=function(e){return t.delete(e)},rv}},26481:function(e,t,r){r.d(t,{R:function(){return j}});var n=r(18271),i=r(34412),o=r(70602),a=r(25174),s=r(49952),c=r(55888),u=r(37396),l=r(68717),f=r(51360),p=r(36054);function asyncMap(e,t,r){return new p.c(function(n){var i=n.next,o=n.error,a=n.complete,s=0,c=!1,u={then:function(e){return new Promise(function(t){return t(e())})}};function makeCallback(e,t){return e?function(t){++s;var both=function(){return e(t)};u=u.then(both,both).then(function(e){--s,i&&i.call(n,e),c&&l.complete()},function(e){throw--s,e}).catch(function(e){o&&o.call(n,e)})}:function(e){return t&&t.call(n,e)}}var l={next:makeCallback(t,i),error:makeCallback(r,o),complete:function(){c=!0,!s&&a&&a.call(n)}},f=e.subscribe(l);return function(){return f.unsubscribe()}})}var h=r(73767);function graphQLResultHasError(e){var t=getGraphQLErrorsFromResult(e);return(0,h.E)(t)}function getGraphQLErrorsFromResult(e){var t=(0,h.E)(e.errors)?e.errors.slice(0):[];return(0,u.ST)(e)&&(0,h.E)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var d=r(3777),y=r(53925),v=r(82307),m=r(28907),b=r(21777),g=r(21461),_=r(87613),w=r(35892);function isPromiseLike(e){return e&&"function"==typeof e.then}var C=function(e){function Concast(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),(0,_.w)(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),(0,_.w)(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?isPromiseLike(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)}):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),(0,_.w)(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new p.c(t)]),isPromiseLike(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,n.C6)(Concast,e),Concast.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},Concast.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},Concast.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},Concast.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},Concast.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},Concast.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},Concast}(p.c);(0,w.r)(C);var S=r(53570),k=r(18709),O=r(75950),E=r(90424),F=r(42455);function isSelectionNode(e){return e.kind===F.b.FIELD||e.kind===F.b.FRAGMENT_SPREAD||e.kind===F.b.INLINE_FRAGMENT}var D=r(30671),R=r(2904),M=r(777),x=function(){function LocalState(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return LocalState.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,D.D9)(t.resolvers,e)}):this.resolvers=(0,D.D9)(this.resolvers,e)},LocalState.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},LocalState.prototype.getResolvers=function(){return this.resolvers||{}},LocalState.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,n.sH)(this,void 0,void 0,function(){return(0,n.YH)(this,function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,s).then(function(e){return(0,n.Cl)((0,n.Cl)({},r),{data:e.result})})]:[2,r]})})},LocalState.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},LocalState.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},LocalState.prototype.clientQuery=function(e){return(0,v.d8)(["client"],e)&&this.resolvers?e:null},LocalState.prototype.serverQuery=function(e){return(0,y.er)(e)},LocalState.prototype.prepareContext=function(e){var t=this.cache;return(0,n.Cl)((0,n.Cl)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},LocalState.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.sH)(this,void 0,void 0,function(){return(0,n.YH)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,n.Cl)((0,n.Cl)({},t),e.exportedVariables)})]:[2,(0,n.Cl)({},t)]})})},LocalState.prototype.shouldForceResolvers=function(e){var t=!1;return(0,E.YR)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return E.sP}}}),t},LocalState.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,y.zc)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},LocalState.prototype.resolveDocument=function(e,t,r,i,o,a){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,n.sH)(this,void 0,void 0,function(){var s,c,u,l,f,p,h,y,v,m;return(0,n.YH)(this,function(b){return s=(0,d.Vn)(e),c=(0,d.zK)(e),u=(0,R.JG)(c),l=this.collectSelectionsToResolve(s,u),p=(f=s.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",h=this,y=h.cache,v=h.client,m={fragmentMap:u,context:(0,n.Cl)((0,n.Cl)({},r),{cache:y,client:v}),variables:i,fragmentMatcher:o,defaultOperationType:p,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,!1,t,m).then(function(e){return{result:e,exportedVariables:m.exportedVariables}})]})})},LocalState.prototype.resolveSelectionSet=function(e,t,r,o){return(0,n.sH)(this,void 0,void 0,function(){var a,s,c,u,l,f=this;return(0,n.YH)(this,function(p){return a=o.fragmentMap,s=o.context,c=o.variables,u=[r],l=function(e){return(0,n.sH)(f,void 0,void 0,function(){var l,f;return(0,n.YH)(this,function(n){return(t||o.selectionsToResolve.has(e))&&(0,v.MS)(e,c)?(0,m.dt)(e)?[2,this.resolveField(e,t,r,o).then(function(t){var r;void 0!==t&&u.push(((r={})[(0,m.ue)(e)]=t,r))})]:((0,m.kd)(e)?l=e:(l=a[e.name.value],__DEV__?(0,i.V1)(l,"No fragment named ".concat(e.name.value)):(0,i.V1)(l,11)),l&&l.typeCondition&&(f=l.typeCondition.name.value,o.fragmentMatcher(r,f,s)))?[2,this.resolveSelectionSet(l.selectionSet,t,r,o).then(function(e){u.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return(0,D.IM)(u)})]})})},LocalState.prototype.resolveField=function(e,t,r,i){return(0,n.sH)(this,void 0,void 0,function(){var o,a,s,c,u,l,f,p,h,d=this;return(0,n.YH)(this,function(n){return r?(o=i.variables,c=(a=e.name.value)!==(s=(0,m.ue)(e)),l=Promise.resolve(u=r[s]||r[a]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=r.__typename||i.defaultOperationType,(p=this.resolvers&&this.resolvers[f])&&(h=p[c?a:s])&&(l=Promise.resolve(M.bl.withValue(this.cache,h,[r,(0,m.MB)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then(function(r){if(void 0===r&&(r=u),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var n,o,a=null!==(o=null===(n=e.directives)||void 0===n?void 0:n.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(r)?d.resolveSubSelectedArray(e,t||a,r,i):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t||a,r,i):void 0})]):[2,null]})})},LocalState.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},LocalState.prototype.collectSelectionsToResolve=function(e,t){var isSingleASTNode=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function collectByDefinition(e){if(!r.has(e)){var n=new Set;r.set(e,n),(0,E.YR)(e,{Directive:function(e,t,r,i,o){"client"===e.name.value&&o.forEach(function(e){isSingleASTNode(e)&&isSelectionNode(e)&&n.add(e)})},FragmentSpread:function(e,r,o,a,s){var c=t[e.name.value];__DEV__?(0,i.V1)(c,"No fragment named ".concat(e.name.value)):(0,i.V1)(c,12);var u=collectByDefinition(c);u.size>0&&(s.forEach(function(e){isSingleASTNode(e)&&isSelectionNode(e)&&n.add(e)}),n.add(e),u.forEach(function(e){n.add(e)}))}})}return r.get(e)}(e)},LocalState}(),I=new(f.et?WeakMap:Map);function wrapDestructiveCacheMethod(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return I.set(e,(I.get(e)+1)%1e15),r.apply(this,arguments)})}function cancelNotifyTimeout(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Q=function(){function QueryInfo(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;I.has(r)||(I.set(r,0),wrapDestructiveCacheMethod(r,"evict"),wrapDestructiveCacheMethod(r,"modify"),wrapDestructiveCacheMethod(r,"reset"))}return QueryInfo.prototype.init=function(e){var t=e.networkStatus||O.p.loading;return this.variables&&this.networkStatus!==O.p.loading&&!(0,c.L)(this.variables,e.variables)&&(t=O.p.setVariables),(0,c.L)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},QueryInfo.prototype.reset=function(){cancelNotifyTimeout(this),this.dirty=!1},QueryInfo.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&(0,c.L)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(t);return this.updateLastDiff(n,t),n},QueryInfo.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},QueryInfo.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},QueryInfo.prototype.setDiff=function(e){var t=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,c.L)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},QueryInfo.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():(0,k.e8)(e)})):delete this.oqListener)},QueryInfo.prototype.notify=function(){var e=this;cancelNotifyTimeout(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},QueryInfo.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,O.b)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},QueryInfo.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=QueryInfo.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var e=this.observableQuery;e&&e.stopPolling()}},QueryInfo.prototype.cancel=function(){},QueryInfo.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=(0,n.Cl)((0,n.Cl)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,c.L)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},QueryInfo.prototype.resetLastWrite=function(){this.lastWrite=void 0},QueryInfo.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===I.get(this.cache)&&(0,c.L)(t,r.variables)&&(0,c.L)(e.data,r.result.data))},QueryInfo.prototype.markResult=function(e,t,r,n){var i=this,o=new D.ZI,a=(0,h.E)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,h.E)(e.incremental)){var s=(0,u.bd)(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=o.merge(c.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(shouldWriteResult(e,r.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:I.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(r.variables),s=o.diff(a);i.stopped||i.updateWatch(r.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},QueryInfo.prototype.markReady=function(){return this.networkError=null,this.networkStatus=O.p.ready},QueryInfo.prototype.markError=function(e){return this.networkStatus=O.p.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},QueryInfo}();function shouldWriteResult(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!graphQLResultHasError(e);return!n&&r&&e.data&&(n=!0),n}var A=Object.prototype.hasOwnProperty,P=function(){function QueryManager(e){var t=e.cache,r=e.link,n=e.defaultOptions,i=e.queryDeduplication,o=e.onBroadcast,a=e.ssrMode,s=e.clientAwareness,c=e.localState,u=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(f.et?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=r,this.defaultOptions=n||Object.create(null),this.queryDeduplication=void 0!==i&&i,this.clientAwareness=void 0===s?{}:s,this.localState=c||new x({cache:t}),this.ssrMode=void 0!==a&&a,this.assumeImmutableResults=!!u,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return QueryManager.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(__DEV__?new i.zU("QueryManager stopped while query was in flight"):new i.zU(14))},QueryManager.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},QueryManager.prototype.mutate=function(e){var t,r,o=e.mutation,a=e.variables,s=e.optimisticResponse,c=e.updateQueries,u=e.refetchQueries,l=void 0===u?[]:u,f=e.awaitRefetchQueries,p=void 0!==f&&f,h=e.update,d=e.onQueryUpdated,y=e.fetchPolicy,v=void 0===y?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":y,m=e.errorPolicy,b=void 0===m?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":m,g=e.keepRootFields,_=e.context;return(0,n.sH)(this,void 0,void 0,function(){var e,t,r,u,f,y;return(0,n.YH)(this,function(m){switch(m.label){case 0:if(__DEV__?(0,i.V1)(o,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,i.V1)(o,15),__DEV__?(0,i.V1)("network-only"===v||"no-cache"===v,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):(0,i.V1)("network-only"===v||"no-cache"===v,16),e=this.generateMutationId(),r=(t=this.transform(o)).document,u=t.hasClientExports,o=this.cache.transformForLink(r),a=this.getVariables(o,a),!u)return[3,2];return[4,this.localState.addExportedVariables(o,a,_)];case 1:a=m.sent(),m.label=2;case 2:return f=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:a,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:e,document:o,variables:a,fetchPolicy:v,errorPolicy:b,context:_,updateQueries:c,update:h,keepRootFields:g}),this.broadcastQueries(),y=this,[2,new Promise(function(t,r){return asyncMap(y.getObservableFromLink(o,(0,n.Cl)((0,n.Cl)({},_),{optimisticResponse:s}),a,!1),function(t){if(graphQLResultHasError(t)&&"none"===b)throw new S.K4({graphQLErrors:getGraphQLErrorsFromResult(t)});f&&(f.loading=!1,f.error=null);var r=(0,n.Cl)({},t);return"function"==typeof l&&(l=l(r)),"ignore"===b&&graphQLResultHasError(r)&&delete r.errors,y.markMutationResult({mutationId:e,result:r,document:o,variables:a,fetchPolicy:v,errorPolicy:b,context:_,update:h,updateQueries:c,awaitRefetchQueries:p,refetchQueries:l,removeOptimistic:s?e:void 0,onQueryUpdated:d,keepRootFields:g})}).subscribe({next:function(e){y.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){f&&(f.loading=!1,f.error=t),s&&y.cache.removeOptimistic(e),y.broadcastQueries(),r(t instanceof S.K4?t:new S.K4({networkError:t}))}})})]}})})},QueryManager.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&shouldWriteResult(i,e.errorPolicy)){if((0,u.ST)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,u.ST)(i)&&(0,h.E)(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),c=void 0;s.result&&(c=(0,u.bd)(s.result,i)),void 0!==c&&(i.data=c,o.push({result:c,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var l=e.updateQueries;l&&this.queries.forEach(function(e,n){var a=e.observableQuery,s=a&&a.queryName;if(s&&A.call(l,s)){var c=l[s],u=r.queries.get(n),f=u.document,p=u.variables,h=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),y=h.result;if(h.complete&&y){var v=c(y,{mutationResult:i,queryName:f&&(0,d.n4)(f)||void 0,queryVariables:p});v&&o.push({result:v,dataId:"ROOT_QUERY",query:f,variables:p})}}})}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach(function(e){return t.write(e)});var s=e.update,c=!(0,u.YX)(i)||(0,u.ST)(i)&&!i.hasNext;if(s){if(!a){var l=t.diff({id:"ROOT_MUTATION",query:r.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(i=(0,n.Cl)((0,n.Cl)({},i),{data:l.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}c&&s(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||!c||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return f.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(f).then(function(){return i})}return Promise.resolve(i)},QueryManager.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,n.Cl)((0,n.Cl)({},t),{result:{data:o}}),e)}catch(e){__DEV__&&i.V1.error(e)}},t.mutationId)},QueryManager.prototype.fetchQuery=function(e,t,r){return this.fetchQueryObservable(e,t,r).promise},QueryManager.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},QueryManager.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},QueryManager.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.cache.transformDocument(e),i=(0,y.hX)(r),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:(0,v.f2)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:(0,d.wY)((0,d.Vu)(r)),asQuery:(0,n.Cl)((0,n.Cl)({},r),{definitions:r.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.Cl)((0,n.Cl)({},e),{operation:"query"}):e})})},add=function(e){e&&!t.has(e)&&t.set(e,s)};add(e),add(r),add(o),add(a)}return t.get(e)},QueryManager.prototype.getVariables=function(e,t){return(0,n.Cl)((0,n.Cl)({},this.transform(e).defaultVars),t)},QueryManager.prototype.watchQuery=function(e){void 0===(e=(0,n.Cl)((0,n.Cl)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new Q(this),r=new k.U5({queryManager:this,queryInfo:t,options:e});return this.queries.set(r.queryId,t),t.init({document:r.query,observableQuery:r,variables:r.variables}),r},QueryManager.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?(0,i.V1)(e.query,"query option is required. You must specify your GraphQL document in the query option."):(0,i.V1)(e.query,17),__DEV__?(0,i.V1)("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):(0,i.V1)("Document"===e.query.kind,18),__DEV__?(0,i.V1)(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,i.V1)(!e.returnPartialData,19),__DEV__?(0,i.V1)(!e.pollInterval,"pollInterval option only supported on watchQuery."):(0,i.V1)(!e.pollInterval,20),this.fetchQuery(t,e).finally(function(){return r.stopQuery(t)})},QueryManager.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},QueryManager.prototype.generateRequestId=function(){return this.requestIdCounter++},QueryManager.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},QueryManager.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},QueryManager.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},QueryManager.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new i.zU("Store reset while query was in flight (not completed in link chain)"):new i.zU(21)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=O.p.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},QueryManager.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?o.set(e,!1):(0,m.Kc)(e)?o.set(t.transform(e).document,!1):(0,b.U)(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,n){var i=t.observableQuery,a=t.document;if(i){if("all"===e){r.set(n,i);return}var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has(a))&&(r.set(n,i),s&&o.set(s,!0),a&&o.set(a,!0))}}),a.size&&a.forEach(function(e){var o=(0,g.v)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new k.U5({queryManager:t,queryInfo:a,options:(0,n.Cl)((0,n.Cl)({},e),{fetchPolicy:"network-only"})});(0,i.V1)(s.queryId===o),a.setObservableQuery(s),r.set(o,s)}),__DEV__&&o.size&&o.forEach(function(e,t){!e&&__DEV__&&i.V1.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))}),r},QueryManager.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},QueryManager.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},QueryManager.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;r=this.transform(r).document,o=this.getVariables(r,o);var makeObservable=function(e){return t.getObservableFromLink(r,s,e).map(function(o){"no-cache"!==n&&(shouldWriteResult(o,i)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=graphQLResultHasError(o),s=(0,S.uR)(o);if(a||s){var c={};throw a&&(c.graphQLErrors=o.errors),s&&(c.protocolErrors=o.extensions[S.K$]),new S.K4(c)}return o})};if(this.transform(r).hasClientExports){var c=this.localState.addExportedVariables(r,o,s).then(makeObservable);return new p.c(function(e){var t=null;return c.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return makeObservable(o)},QueryManager.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},QueryManager.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},QueryManager.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},QueryManager.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},QueryManager.prototype.getLocalState=function(){return this.localState},QueryManager.prototype.getObservableFromLink=function(e,t,r,i){var o,s,c=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var u=this.transform(e).serverQuery;if(u){var f=this.inFlightLinkObservables,h=this.link,y={query:u,variables:r,operationName:(0,d.n4)(u)||void 0,context:this.prepareContext((0,n.Cl)((0,n.Cl)({},t),{forceFetch:!i}))};if(t=y.context,i){var v=f.get(u)||new Map;f.set(u,v);var m=(0,l.M)(r);if(!(s=v.get(m))){var b=new C([(0,a.g)(h,y)]);v.set(m,s=b),b.beforeNext(function(){v.delete(m)&&v.size<1&&f.delete(u)})}}else s=new C([(0,a.g)(h,y)])}else s=new C([p.c.of({data:{}})]),t=this.prepareContext(t);var g=this.transform(e).clientQuery;return g&&(s=asyncMap(s,function(e){return c.localState.runResolvers({document:g,remoteResult:e,context:t,variables:r})})),s},QueryManager.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(this.transform(e.document).document);return asyncMap(this.getObservableFromLink(i,r.context,r.variables),function(o){var a=getGraphQLErrorsFromResult(o),s=a.length>0;if(n>=e.lastRequestId){if(s&&"none"===r.errorPolicy)throw e.markError(new S.K4({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var c={data:o.data,loading:!1,networkStatus:O.p.ready};return s&&"ignore"!==r.errorPolicy&&(c.errors=a,c.networkStatus=O.p.error),c},function(t){var r=(0,S.Mn)(t)?t:new S.K4({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},QueryManager.prototype.fetchQueryObservable=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast},QueryManager.prototype.fetchConcastWithInfo=function(e,t,r){var n,i,o=this;void 0===r&&(r=O.p.loading);var a=this.transform(t.query).document,s=this.getVariables(a,t.variables),c=this.getQuery(e),u=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?u&&u.fetchPolicy||"cache-first":l,p=t.errorPolicy,h=void 0===p?u&&u.errorPolicy||"none":p,d=t.returnPartialData,y=t.notifyOnNetworkStatusChange,v=t.context,m=Object.assign({},t,{query:a,variables:s,fetchPolicy:f,errorPolicy:h,returnPartialData:void 0!==d&&d,notifyOnNetworkStatusChange:void 0!==y&&y,context:void 0===v?{}:v}),fromVariables=function(e){m.variables=e;var n=o.fetchQueryByPolicy(c,m,r);return"standby"!==m.fetchPolicy&&n.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",t),n},cleanupCancelFn=function(){return o.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){cleanupCancelFn(),setTimeout(function(){return n.cancel(e)})}),this.transform(m.query).hasClientExports)n=new C(this.localState.addExportedVariables(m.query,m.variables,m.context).then(fromVariables).then(function(e){return e.sources})),i=!0;else{var b=fromVariables(m.variables);i=b.fromLink,n=new C(b.sources)}return n.promise.then(cleanupCancelFn,cleanupCancelFn),{concast:n,fromLink:i}},QueryManager.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,g.v)("refetchQueries"):void 0:a,c=e.onQueryUpdated,u=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){u.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})});var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof Q&&e.watcher.observableQuery;if(n){if(c){u.delete(n.queryId);var i=c(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==c&&u.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),u.size&&u.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(c){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=c(i,a,o)}c&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),l},QueryManager.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,a=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,l=t.errorPolicy,f=t.returnPartialData,h=t.context,d=t.notifyOnNetworkStatusChange,y=e.networkStatus;e.init({document:this.transform(o).document,variables:a,networkStatus:r});var readCache=function(){return e.getDiff(a)},resultsFromCache=function(t,r){void 0===r&&(r=e.networkStatus||O.p.loading);var s=t.result;!__DEV__||f||(0,c.L)(s,{})||(0,k.yd)(t.missing);var fromData=function(e){return p.c.of((0,n.Cl)({data:e,loading:(0,O.b)(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:h,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return fromData(e.data||void 0)}):"none"===l&&r===O.p.refetch&&Array.isArray(t.missing)?fromData(void 0):fromData(s)},v="no-cache"===s?0:r===O.p.refetch&&"merge"!==u?1:2,resultsFromLink=function(){return i.getResultsFromLink(e,v,{variables:a,context:h,fetchPolicy:s,errorPolicy:l})},m=d&&"number"==typeof y&&y!==r&&(0,O.b)(r);switch(s){default:case"cache-first":var b=readCache();if(b.complete)return{fromLink:!1,sources:[resultsFromCache(b,e.markReady())]};if(f||m)return{fromLink:!0,sources:[resultsFromCache(b),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"cache-and-network":var b=readCache();if(b.complete||f||m)return{fromLink:!0,sources:[resultsFromCache(b),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"cache-only":return{fromLink:!1,sources:[resultsFromCache(readCache(),e.markReady())]};case"network-only":if(m)return{fromLink:!0,sources:[resultsFromCache(readCache()),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"no-cache":if(m)return{fromLink:!0,sources:[resultsFromCache(e.getDiff()),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"standby":return{fromLink:!1,sources:[]}}},QueryManager.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Q(this,e)),this.queries.get(e)},QueryManager.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.Cl)((0,n.Cl)({},t),{clientAwareness:this.clientAwareness})},QueryManager}(),T=r(31507),V=!1,j=function(){function ApolloClient(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,n=e.credentials,a=e.headers,c=e.cache,u=e.ssrMode,l=void 0!==u&&u,f=e.ssrForceFetchDelay,p=void 0===f?0:f,h=e.connectToDevTools,d=void 0===h?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:h,y=e.queryDeduplication,v=void 0===y||y,m=e.defaultOptions,b=e.assumeImmutableResults,g=e.resolvers,_=e.typeDefs,w=e.fragmentMatcher,C=e.name,S=e.version,k=e.link;if(k||(k=r?new s.P({uri:r,credentials:n,headers:a}):o.C.empty()),!c)throw __DEV__?new i.zU("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new i.zU(9);if(this.link=k,this.cache=c,this.disableNetworkFetches=l||p>0,this.queryDeduplication=v,this.defaultOptions=m||Object.create(null),this.typeDefs=_,p&&setTimeout(function(){return t.disableNetworkFetches=!1},p),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),d&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!V&&d&&__DEV__&&(V=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var O=window.navigator,E=O&&O.userAgent,F=void 0;"string"==typeof E&&(E.indexOf("Chrome/")>-1?F="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":E.indexOf("Firefox/")>-1&&(F="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),F&&__DEV__&&i.V1.log("Download the Apollo DevTools for a better development experience: "+F)}this.version="3.7.17",this.localState=new x({cache:c,client:this,resolvers:g,fragmentMatcher:w}),this.queryManager=new P({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:v,ssrMode:l,clientAwareness:{name:C,version:S},localState:this.localState,assumeImmutableResults:void 0!==b&&b,onBroadcast:d?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return ApolloClient.prototype.stop=function(){this.queryManager.stop()},ApolloClient.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,T.l)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,n.Cl)((0,n.Cl)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},ApolloClient.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,T.l)(this.defaultOptions.query,e)),__DEV__?(0,i.V1)("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,i.V1)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.Cl)((0,n.Cl)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},ApolloClient.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,T.l)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},ApolloClient.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},ApolloClient.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},ApolloClient.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},ApolloClient.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},ApolloClient.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},ApolloClient.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},ApolloClient.prototype.__requestRaw=function(e){return(0,a.g)(this.link,e)},ApolloClient.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},ApolloClient.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},ApolloClient.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},ApolloClient.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},ApolloClient.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},ApolloClient.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var o=Promise.all(n);return o.queries=r,o.results=n,o.catch(function(e){__DEV__&&i.V1.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))}),o},ApolloClient.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},ApolloClient.prototype.extract=function(e){return this.cache.extract(e)},ApolloClient.prototype.restore=function(e){return this.cache.restore(e)},ApolloClient.prototype.addResolvers=function(e){this.localState.addResolvers(e)},ApolloClient.prototype.setResolvers=function(e){this.localState.setResolvers(e)},ApolloClient.prototype.getResolvers=function(){return this.localState.getResolvers()},ApolloClient.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},ApolloClient.prototype.setLink=function(e){this.link=this.queryManager.link=e},ApolloClient}()},18709:function(e,t,r){r.d(t,{U5:function(){return v},e8:function(){return reobserveCacheFirst},yd:function(){return logMissingFieldErrors}});var n=r(18271),i=r(34412),o=r(55888),a=r(75950),s=r(3777),c=r(20906),u=r(73767),l=r(50492),f=r(87613),p=r(36054),h=r(35892),d=Object.assign,y=Object.hasOwnProperty,v=function(e){function ObservableQuery(t){var r=t.queryManager,i=t.queryInfo,o=t.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=defaultSubscriptionObserverErrorCallback)}catch(e){}var r=!a.observers.size;a.observers.add(e);var n=a.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=r,a.waitForOwnResult=skipCacheDataFor(o.fetchPolicy),a.isTornDown=!1;var c=r.defaultOptions.watchQuery,u=(void 0===c?{}:c).fetchPolicy,l=void 0===u?"cache-first":u,f=o.fetchPolicy,p=void 0===f?l:f,h=o.initialFetchPolicy,d=void 0===h?"standby"===p?l:p:h;a.options=(0,n.Cl)((0,n.Cl)({},o),{initialFetchPolicy:d,fetchPolicy:p}),a.queryId=i.queryId||r.generateQueryId();var y=(0,s.Vu)(a.query);return a.queryName=y&&y.name&&y.name.value,a}return(0,n.C6)(ObservableQuery,e),Object.defineProperty(ObservableQuery.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(ObservableQuery.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),ObservableQuery.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},ObservableQuery.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||a.p.ready,i=(0,n.Cl)((0,n.Cl)({},t),{loading:(0,a.b)(r),networkStatus:r}),s=this.options.fetchPolicy,c=void 0===s?"cache-first":s;if(skipCacheDataFor(c)||this.queryManager.transform(this.options.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(i.data=u.result),(0,o.L)(i.data,{})&&(i.data=void 0),u.complete?(delete i.partial,u.complete&&i.networkStatus===a.p.loading&&("cache-first"===c||"cache-only"===c)&&(i.networkStatus=a.p.ready,i.loading=!1)):i.partial=!0,!__DEV__||u.complete||this.options.partialRefetch||i.loading||i.data||i.error||logMissingFieldErrors(u.missing)}return e&&this.updateLastResult(i),i},ObservableQuery.prototype.isDifferentFromLastResult=function(e,t){return!this.last||!(0,o.L)(this.last.result,e)||t&&!(0,o.L)(this.last.variables,t)},ObservableQuery.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,o.L)(r.variables,this.variables)))return r[e]},ObservableQuery.prototype.getLastResult=function(e){return this.getLast("result",e)},ObservableQuery.prototype.getLastError=function(e){return this.getLast("error",e)},ObservableQuery.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},ObservableQuery.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},ObservableQuery.prototype.refetch=function(e){var t,r={pollInterval:0},c=this.options.fetchPolicy;if("cache-and-network"===c?r.fetchPolicy=c:"no-cache"===c?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",__DEV__&&e&&y.call(e,"variables")){var u=(0,s.AT)(this.query),l=u.variableDefinitions;(!l||!l.some(function(e){return"variables"===e.variable.name.value}))&&__DEV__&&i.V1.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=u.name)||void 0===t?void 0:t.value)||JSON.stringify(u),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!(0,o.L)(this.options.variables,e)&&(r.variables=this.options.variables=(0,n.Cl)((0,n.Cl)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,a.p.refetch)},ObservableQuery.prototype.fetchMore=function(e){var t=this,r=(0,n.Cl)((0,n.Cl)({},e.query?e:(0,n.Cl)((0,n.Cl)((0,n.Cl)((0,n.Cl)({},this.options),{query:this.query}),e),{variables:(0,n.Cl)((0,n.Cl)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId(),o=this.queryInfo,s=o.networkStatus;o.networkStatus=a.p.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var c=new Set;return this.queryManager.fetchQuery(i,r,a.p.fetchMore).then(function(n){return t.queryManager.removeQuery(i),o.networkStatus===a.p.fetchMore&&(o.networkStatus=s),t.queryManager.cache.batch({update:function(i){var o=e.updateQuery;o?i.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return o(e,{fetchMoreResult:n.data,variables:r.variables})}):i.writeQuery({query:r.query,variables:r.variables,data:n.data})},onWatchUpdated:function(e){c.add(e.query)}}),n}).finally(function(){c.has(t.query)||reobserveCacheFirst(t)})},ObservableQuery.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,{subscriptionData:r,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}__DEV__&&i.V1.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},ObservableQuery.prototype.setOptions=function(e){return this.reobserve(e)},ObservableQuery.prototype.setVariables=function(e){return(0,o.L)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},a.p.setVariables):Promise.resolve()},ObservableQuery.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},ObservableQuery.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},ObservableQuery.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},ObservableQuery.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},ObservableQuery.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t)},ObservableQuery.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){__DEV__?(0,i.V1)(r,"Attempted to start a polling query without a polling interval."):(0,i.V1)(r,13),(t||(this.pollingInfo={})).interval=r;var maybeFetch=function(){e.pollingInfo&&((0,a.b)(e.queryInfo.networkStatus)?poll():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},a.p.poll).then(poll,poll))},poll=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(maybeFetch,t.interval))};poll()}}},ObservableQuery.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=(0,n.Cl)((0,n.Cl)({},this.last),{result:this.queryManager.assumeImmutableResults?e:(0,c.m)(e),variables:t}),(0,u.E)(e.errors)||delete this.last.error,this.last},ObservableQuery.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var i=t===a.p.refetch||t===a.p.fetchMore||t===a.p.poll,s=this.options.variables,c=this.options.fetchPolicy,u=(0,l.o)(this.options,e||{}),f=i?u:d(this.options,u);!i&&(this.updatePolling(),e&&e.variables&&!(0,o.L)(e.variables,s)&&"standby"!==f.fetchPolicy&&f.fetchPolicy===c&&(this.applyNextFetchPolicy("variables-changed",f),void 0===t&&(t=a.p.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=skipCacheDataFor(f.fetchPolicy));var finishWaitingForOwnResult=function(){r.concast===y&&(r.waitForOwnResult=!1)},p=f.variables&&(0,n.Cl)({},f.variables),h=this.fetch(f,t),y=h.concast,v=h.fromLink,m={next:function(e){finishWaitingForOwnResult(),r.reportResult(e,p)},error:function(e){finishWaitingForOwnResult(),r.reportError(e,p)}};return!i&&v&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=y,this.observer=m),y.addObserver(m),y},ObservableQuery.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},ObservableQuery.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},ObservableQuery.prototype.reportResult=function(e,t){var r=this.getLastError();(r||this.isDifferentFromLastResult(e,t))&&((r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(0,f.w)(this.observers,"next",e))},ObservableQuery.prototype.reportError=function(e,t){var r=(0,n.Cl)((0,n.Cl)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:a.p.error,loading:!1});this.updateLastResult(r,t),(0,f.w)(this.observers,"error",this.last.error=e)},ObservableQuery.prototype.hasObservers=function(){return this.observers.size>0},ObservableQuery.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},ObservableQuery}(p.c);function reobserveCacheFirst(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return(this.nextFetchPolicy=n,"function"==typeof n)?n.apply(this,arguments):r}}):e.reobserve()}function defaultSubscriptionObserverErrorCallback(e){__DEV__&&i.V1.error("Unhandled error",e.message,e.stack)}function logMissingFieldErrors(e){__DEV__&&e&&__DEV__&&i.V1.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}function skipCacheDataFor(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,h.r)(v)},75950:function(e,t,r){var n,i;function isNetworkRequestInFlight(e){return!!e&&e<7}r.d(t,{b:function(){return isNetworkRequestInFlight},p:function(){return n}}),(i=n||(n={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error"},53570:function(e,t,r){r.d(t,{K$:function(){return o},K4:function(){return a},Mn:function(){return isApolloError},uR:function(){return graphQLResultHasProtocolErrors}});var n=r(18271);r(34412);var i=r(21777),o=Symbol();function graphQLResultHasProtocolErrors(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function isApolloError(e){return e.hasOwnProperty("graphQLErrors")}var generateErrorMessage=function(e){var t=(0,n.fX)((0,n.fX)((0,n.fX)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return(0,i.U)(e)&&e.message||"Error message not found."}).join("\n")},a=function(e){function ApolloError(t){var r=t.graphQLErrors,n=t.protocolErrors,i=t.clientErrors,o=t.networkError,a=t.errorMessage,s=t.extraInfo,c=e.call(this,a)||this;return c.name="ApolloError",c.graphQLErrors=r||[],c.protocolErrors=n||[],c.clientErrors=i||[],c.networkError=o||null,c.message=a||generateErrorMessage(c),c.extraInfo=s,c.__proto__=ApolloError.prototype,c}return(0,n.C6)(ApolloError,e),ApolloError}(Error)},26197:function(e,t,r){r.d(t,{o:function(){return setContext}});var n=r(18271),i=r(70602),o=r(36054);function setContext(e){return new i.C(function(t,r){var i=(0,n.Tt)(t,[]);return new o.c(function(n){var o,a=!1;return Promise.resolve(i).then(function(r){return e(r,t.getContext())}).then(t.setContext).then(function(){a||(o=r(t).subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}))}).catch(n.error.bind(n)),function(){a=!0,o&&o.unsubscribe()}})})}},70602:function(e,t,r){r.d(t,{C:function(){return c}});var n=r(18271),i=r(34412),o=r(36054),a=r(3777);function passthrough(e,t){return t?t(e):o.c.of()}function toLink(e){return"function"==typeof e?new c(e):e}function isTerminating(e){return e.request.length<=1}var s=function(e){function LinkError(t,r){var n=e.call(this,t)||this;return n.link=r,n}return(0,n.C6)(LinkError,e),LinkError}(Error),c=function(){function ApolloLink(e){e&&(this.request=e)}return ApolloLink.empty=function(){return new ApolloLink(function(){return o.c.of()})},ApolloLink.from=function(e){return 0===e.length?ApolloLink.empty():e.map(toLink).reduce(function(e,t){return e.concat(t)})},ApolloLink.split=function(e,t,r){var n=toLink(t),i=toLink(r||new ApolloLink(passthrough));return new ApolloLink(isTerminating(n)&&isTerminating(i)?function(t){return e(t)?n.request(t)||o.c.of():i.request(t)||o.c.of()}:function(t,r){return e(t)?n.request(t,r)||o.c.of():i.request(t,r)||o.c.of()})},ApolloLink.execute=function(e,t){var r,s,c,u;return e.request((c=t.context,(s={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);rt.indexOf(o))throw __DEV__?new i.zU("illegal argument: ".concat(o)):new i.zU(27)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(s.operationName="string"!=typeof s.query?(0,a.n4)(s.query)||void 0:""),u=(0,n.Cl)({},c),Object.defineProperty(s,"setContext",{enumerable:!1,value:function(e){u="function"==typeof e?(0,n.Cl)((0,n.Cl)({},u),e(u)):(0,n.Cl)((0,n.Cl)({},u),e)}}),Object.defineProperty(s,"getContext",{enumerable:!1,value:function(){return(0,n.Cl)({},u)}}),s))||o.c.of()},ApolloLink.concat=function(e,t){var r=toLink(e);if(isTerminating(r))return __DEV__&&i.V1.warn(new s("You are calling concat on a terminating link, which will have no effect",r)),r;var n=toLink(t);return new ApolloLink(isTerminating(n)?function(e){return r.request(e,function(e){return n.request(e)||o.c.of()})||o.c.of()}:function(e,t){return r.request(e,function(e){return n.request(e,t)||o.c.of()})||o.c.of()})},ApolloLink.prototype.split=function(e,t,r){return this.concat(ApolloLink.split(e,t,r||new ApolloLink(passthrough)))},ApolloLink.prototype.concat=function(e){return ApolloLink.concat(this,e)},ApolloLink.prototype.request=function(e,t){throw __DEV__?new i.zU("request is not implemented"):new i.zU(22)},ApolloLink.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},ApolloLink.prototype.setOnError=function(e){return this.onError=e,this},ApolloLink}()},25174:function(e,t,r){r.d(t,{g:function(){return n}});var n=r(70602).C.execute},65965:function(e,t,r){r.d(t,{H:function(){return n}});var n=r(70602).C.from},79556:function(e,t,r){r.d(t,{S:function(){return onError}});var n=r(18271),i=r(36054),o=r(70602);function onError(e){return new o.C(function(t,r){return new i.c(function(n){var i,o,a;try{i=r(t).subscribe({next:function(i){if(i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}))){o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.next(i)},error:function(i){if(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:r})){o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.error(i)},complete:function(){a||n.complete.bind(n)()}})}catch(i){e({networkError:i,operation:t,forward:r}),n.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}})})}!function(e){function ErrorLink(t){var r=e.call(this)||this;return r.link=onError(t),r}(0,n.C6)(ErrorLink,e),ErrorLink.prototype.request=function(e,t){return this.link.request(e,t)}}(o.C)},49952:function(e,t,r){r.d(t,{P:function(){return a}});var n=r(18271),i=r(70602),o=r(79760),a=function(e){function HttpLink(t){void 0===t&&(t={});var r=e.call(this,(0,o.$)(t).request)||this;return r.options=t,r}return(0,n.C6)(HttpLink,e),HttpLink}(i.C)},67195:function(e,t,r){r.d(t,{S:function(){return checkFetcher}});var n=r(34412),checkFetcher=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new n.zU("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new n.zU(23)}},79760:function(e,t,r){r.d(t,{$:function(){return createHttpLink}});var n=r(18271),i=r(34412),o=r(90424),a=r(70602),s=r(82307),c=r(36054),u=r(63647),l=r(33068),f=r(23968),p=r(67195),h=r(74559),d=r(72917),y=r(11151),v=r(93161),m=r(3777),b=(0,i.no)(function(){return fetch}),createHttpLink=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,g=e.fetch,_=e.print,w=void 0===_?h.i1:_,C=e.includeExtensions,S=e.preserveHeaderCase,k=e.useGETForQueries,O=e.includeUnusedVariables,E=void 0!==O&&O,F=(0,n.Tt)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&(0,p.S)(g||b);var D={http:{includeExtensions:C,preserveHeaderCase:S},options:F.fetchOptions,credentials:F.credentials,headers:F.headers};return new a.C(function(e){var t,a,p=(0,l.z)(e,r),_=e.getContext(),C={};if(_.clientAwareness){var S=_.clientAwareness,O=S.name,F=S.version;O&&(C["apollographql-client-name"]=O),F&&(C["apollographql-client-version"]=F)}var R=(0,n.Cl)((0,n.Cl)({},C),_.headers),M={http:_.http,options:_.fetchOptions,credentials:_.credentials,headers:R},x=(0,h.HY)(e,w,h.R4,D,M),I=x.options,Q=x.body;if(Q.variables&&!E){var A=new Set(Object.keys(Q.variables));(0,o.YR)(e.query,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&A.delete(e.name.value)}}),A.size&&(Q.variables=(0,n.Cl)({},Q.variables),A.forEach(function(e){delete Q.variables[e]}))}if(!I.signal){var P=(0,d.S)(),T=P.controller,V=P.signal;(a=T)&&(I.signal=V)}var j="OperationDefinition"===(t=(0,m.Vn)(e.query)).kind&&"subscription"===t.operation,q=(0,s.d8)(["defer"],e.query);if(k&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(I.method="GET"),q||j){I.headers=I.headers||{};var L="multipart/mixed;";j&&q&&__DEV__&&i.V1.warn("Multipart-subscriptions do not support @defer"),j?L+="boundary=graphql;subscriptionSpec=1.0,application/json":q&&(L+="deferSpec=20220824,application/json"),I.headers.accept=L}if("GET"===I.method){var N=(0,y.E)(p,Q),z=N.newURI,U=N.parseError;if(U)return(0,v.N)(U);p=z}else try{I.body=(0,u.Y)(Q,"Payload")}catch(e){return(0,v.N)(e)}return new c.c(function(t){return(g||(0,i.no)(function(){return fetch})||b)(p,I).then(function(r){e.setContext({response:r});var n,i=null===(n=r.headers)||void 0===n?void 0:n.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?(0,f.tD)(r,t):(0,f.nE)(r,e,t)}).catch(function(e){return(0,f.H4)(e,t)}),function(){a&&a.abort()}})})}},72917:function(e,t,r){r.d(t,{S:function(){return createSignalIfSupported}});var createSignalIfSupported=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}}},23968:function(e,t,r){r.d(t,{H4:function(){return handleError},OQ:function(){return parseAndCheckHttpResponse},nE:function(){return readJsonBody},tD:function(){return readMultipartBody}});var n=r(18271),i=r(51360);function readerIterator(e){var t={next:function(){return e.read()}};return i.uJ&&(t[Symbol.asyncIterator]=function(){return this}),t}var o=r(3848),a=r(53570),s=r(37396),c=Object.prototype.hasOwnProperty;function readMultipartBody(e,t){var r,o,c,u,l;return(0,n.sH)(this,void 0,void 0,function(){var f,p,h,d,y,v,m,b,g,_,w,C,S,k,O,E,F,D,R,M,x,I;return(0,n.YH)(this,function(Q){switch(Q.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");f=new TextDecoder("utf-8"),p=null===(r=e.headers)||void 0===r?void 0:r.get("content-type"),h="boundary=",d=(null==p?void 0:p.includes(h))?null==p?void 0:p.substring((null==p?void 0:p.indexOf(h))+h.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",y="\r\n--".concat(d),v="",m=function(e){var t,r,n,o,a,s,c=e;if(e.body&&(c=e.body),t=c,i.uJ&&t[Symbol.asyncIterator])return n=c[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(c.getReader)return readerIterator(c.getReader());if(c.stream)return readerIterator(c.stream().getReader());if(c.arrayBuffer)return o=c.arrayBuffer(),a=!1,s={next:function(){return a?Promise.resolve({value:void 0,done:!0}):(a=!0,new Promise(function(e,t){o.then(function(t){e({value:t,done:!1})}).catch(t)}))}},i.uJ&&(s[Symbol.asyncIterator]=function(){return this}),s;if(c.pipe)return function(e){var t=null,r=null,n=!1,o=[],a=[];function onData(e){if(!r){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}o.push(e)}}function onError(e){r=e,a.slice().forEach(function(t){t[1](e)}),t&&t()}function onEnd(){n=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",onData),e.removeListener("error",onError),e.removeListener("end",onEnd),e.removeListener("finish",onEnd),e.removeListener("close",onEnd)},e.on("data",onData),e.on("error",onError),e.on("end",onEnd),e.on("finish",onEnd),e.on("close",onEnd);var s={next:function(){return new Promise(function(e,t){return r?t(r):o.length?e({value:o.shift(),done:!1}):n?e({value:void 0,done:!0}):void a.push([e,t])})}};return i.uJ&&(s[Symbol.asyncIterator]=function(){return this}),s}(c);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),b=!0,Q.label=1;case 1:if(!b)return[3,3];return[4,m.next()];case 2:for(_=(g=Q.sent()).value,w=g.done,C="string"==typeof _?_:f.decode(_),S=v.length-y.length+1,b=!w,v+=C,k=v.indexOf(y,S);k>-1;){if(O=void 0,O=(x=[v.slice(0,k),v.slice(k+y.length)])[0],v=x[1],E=O.indexOf("\r\n\r\n"),(F=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(O.slice(0,E))["content-type"])&&-1===F.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(D=O.slice(E))try{R=parseJsonBody(e,D),Object.keys(R).length>1||"data"in R||"incremental"in R||"errors"in R||"payload"in R?(0,s.Nw)(R)?(M={},"payload"in R&&(M=(0,n.Cl)({},R.payload)),"errors"in R&&(M=(0,n.Cl)((0,n.Cl)({},M),{extensions:(0,n.Cl)((0,n.Cl)({},"extensions"in M?M.extensions:null),((I={})[a.K$]=R.errors,I))})),null===(o=t.next)||void 0===o||o.call(t,M)):null===(c=t.next)||void 0===c||c.call(t,R):1===Object.keys(R).length&&"hasNext"in R&&!R.hasNext&&(null===(u=t.complete)||void 0===u||u.call(t))}catch(e){handleError(e,t)}k=v.indexOf(y)}return[3,1];case 3:return null===(l=t.complete)||void 0===l||l.call(t),[2]}})})}function parseJsonBody(e,t){e.status>=300&&(0,o.A)(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function handleError(e,t){var r,n;"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&(null===(r=t.next)||void 0===r||r.call(t,e.result)),null===(n=t.error)||void 0===n||n.call(t,e))}function readJsonBody(e,t,r){parseAndCheckHttpResponse(t)(e).then(function(e){var t,n;null===(t=r.next)||void 0===t||t.call(r,e),null===(n=r.complete)||void 0===n||n.call(r)}).catch(function(e){return handleError(e,r)})}function parseAndCheckHttpResponse(e){return function(t){return t.text().then(function(e){return parseJsonBody(t,e)}).then(function(r){return t.status>=300&&(0,o.A)(t,r,"Response not successful: Received status code ".concat(t.status)),Array.isArray(r)||c.call(r,"data")||c.call(r,"errors")||(0,o.A)(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r})}}},11151:function(e,t,r){r.d(t,{E:function(){return rewriteURIForGET}});var n=r(63647);function rewriteURIForGET(e,t){var r=[],addQueryParam=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&addQueryParam("query",t.query),t.operationName&&addQueryParam("operationName",t.operationName),t.variables){var i=void 0;try{i=(0,n.Y)(t.variables,"Variables map")}catch(e){return{parseError:e}}addQueryParam("variables",i)}if(t.extensions){var o=void 0;try{o=(0,n.Y)(t.extensions,"Extensions map")}catch(e){return{parseError:e}}addQueryParam("extensions",o)}var a="",s=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),s=e.substr(0,c));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+r.join("&")+a}}},74559:function(e,t,r){r.d(t,{HY:function(){return selectHttpOptionsAndBodyInternal},R4:function(){return o},Wz:function(){return selectHttpOptionsAndBody},i1:function(){return defaultPrinter}});var n=r(18271),i=r(9554),o={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},defaultPrinter=function(e,t){return t(e)};function selectHttpOptionsAndBody(e,t){for(var r=[],i=2;it.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function __awaiter(e,t,r,n){return new(r||(r=Promise))(function(i,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n.throw(e))}catch(e){o(e)}}function step(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})}function __generator(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function verb(s){return function(c){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0}},51360:function(e,t,r){r.d(t,{En:function(){return o},JR:function(){return l},et:function(){return i},ol:function(){return a},uJ:function(){return s}});var n=r(34412),i="function"==typeof WeakMap&&"ReactNative"!==(0,n.no)(function(){return navigator.product}),o="function"==typeof WeakSet,a="function"==typeof Symbol&&"function"==typeof Symbol.for,s=a&&Symbol.asyncIterator,c="function"==typeof(0,n.no)(function(){return window.document.createElement}),u=(0,n.no)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,l=c&&!u},20906:function(e,t,r){r.d(t,{m:function(){return cloneDeep}});var n=Object.prototype.toString;function cloneDeep(e){return function cloneDeepHelper(e,t){switch(n.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach(function(e,n){r[n]=cloneDeepHelper(e,t)}),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var i=Object.create(Object.getPrototypeOf(e));return t.set(e,i),Object.keys(e).forEach(function(r){i[r]=cloneDeepHelper(e[r],t)}),i;default:return e}}(e)}},50492:function(e,t,r){r.d(t,{o:function(){return compact}});function compact(){for(var e=[],t=0;t=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}r=n.merge(r,t)}),r}},21461:function(e,t,r){r.d(t,{v:function(){return makeUniqueId}});var n=new Map;function makeUniqueId(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},57236:function(e,t,r){r.d(t,{G:function(){return maybeDeepFreeze}}),r(34412);var n=r(21777);function maybeDeepFreeze(e){if(__DEV__){var t;(t=new Set([e])).forEach(function(e){(0,n.U)(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(r){(0,n.U)(e[r])&&t.add(e[r])})})}return e}},30671:function(e,t,r){r.d(t,{D9:function(){return mergeDeep},IM:function(){return mergeDeepArray},ZI:function(){return a}});var n=r(18271),i=r(21777),o=Object.prototype.hasOwnProperty;function mergeDeep(){for(var e=[],t=0;t1)for(var n=new a,i=1;i0))return r.connection.key;var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(stringify(i),")")}var o=e;if(t){var s=stringify(t);o+="(".concat(s,")")}return r&&Object.keys(r).forEach(function(e){-1===a.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(stringify(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=stringify;return stringify=e,t}}),stringify=function(e){return JSON.stringify(e,stringifyReplacer)};function stringifyReplacer(e,t){return(0,i.U)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,r){return e[r]=t[r],e},{})),t}function argumentsObjectFromField(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return valueToObjectRepresentation(r,e.name,e.value,t)}),r}return null}function resultKeyNameFromField(e){return e.alias?e.alias.value:e.name.value}function isField(e){return"Field"===e.kind}function isInlineFragment(e){return"InlineFragment"===e.kind}},53925:function(e,t,r){r.d(t,{XY:function(){return p},er:function(){return removeClientSetsFromDocument},hX:function(){return removeConnectionDirectiveFromDocument},zc:function(){return buildQueryFromSelectionSet}});var n=r(18271),i=r(34412),o=r(42455),a=r(90424),s=r(3777),c=r(28907),u=r(2904),l=r(73767),f={kind:o.b.FIELD,name:{kind:o.b.NAME,value:"__typename"}};function makeInUseGetterFunction(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function removeDirectivesFromDocument(e,t){for(var r,c,f,p=makeInUseGetterFunction(""),h=makeInUseGetterFunction(""),getInUse=function(e){for(var t=0,r=void 0;t=0;--y)t.definitions[y].kind===o.b.OPERATION_DEFINITION&&++d;var v=(r=new Set,c=[],e.forEach(function(e){e.name?r.add(e.name):e.test&&c.push(e.test)}),function(e){return r.has(e.name.value)||c.some(function(t){return t(e)})}),m=e.some(function(e){return e.remove}),shouldRemoveField=function(e){return m&&e&&e.some(v)},b=new Map,g=!1,_={enter:function(e){if(shouldRemoveField(e.directives))return g=!0,null}},w=(0,a.YR)(t,{Field:_,InlineFragment:_,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=getInUse(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(shouldRemoveField(e.directives))return g=!0,null;var o=getInUse(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){b.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===b.get(JSON.stringify(n))?e:d>0&&e.selectionSet.selections.every(function(e){return e.kind===o.b.FIELD&&"__typename"===e.name.value})?(h(e.name.value).removed=!0,g=!0,null):void 0}},Directive:{leave:function(e){if(v(e))return g=!0,null}}});if(!g)return t;var populateTransitiveVars=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){populateTransitiveVars(h(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},C=new Set;w.definitions.forEach(function(e){e.kind===o.b.OPERATION_DEFINITION?populateTransitiveVars(p(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){C.add(e)}):e.kind!==o.b.FRAGMENT_DEFINITION||0!==d||h(e.name.value).removed||C.add(e.name.value)}),C.forEach(function(e){populateTransitiveVars(h(e)).fragmentSpreads.forEach(function(e){C.add(e)})});var S={enter:function(e){var t;if(t=e.name.value,!C.has(t)||h(t).removed)return null}};return f=(0,a.YR)(w,{FragmentSpread:S,FragmentDefinition:S,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=populateTransitiveVars(p(e.name&&e.name.value)).transitiveVars;if(t.sizeglobalThis)||maybe(()=>global)||Object.create(null),c=s[a]||Array[a]||function(e){try{Object.defineProperty(s,a,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=n;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===i)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=i),!1}getValue(){if(this.hasValue())return n.slots[this.id]}withValue(e,t,r,i){let o={__proto__:null,[this.id]:e},a=n;n={parent:a,slots:o};try{return t.apply(i,r)}finally{n=a}}static bind(e){let t=n;return function(){let r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}}static noContext(e,t,r){if(!n)return e.apply(r,t);{let i=n;try{return n=null,e.apply(r,t)}finally{n=i}}}}),{bind:u,noContext:l}=c},55888:function(e,t,r){r.d(t,{L:function(){return equal}});let{toString:n,hasOwnProperty:i}=Object.prototype,o=Function.prototype.toString,a=new Map;function equal(e,t){try{return function check(e,t){if(e===t)return!0;let r=n.call(e),a=n.call(t);if(r!==a)return!1;switch(r){case"[object Array]":if(e.length!==t.length)break;case"[object Object]":{if(previouslyCompared(e,t))return!0;let r=definedKeys(e),n=definedKeys(t),o=r.length;if(o!==n.length)return!1;for(let e=0;e=0&&e.indexOf(t,r)===r}(r,s)}}return!1}(e,t)}finally{a.clear()}}function definedKeys(e){return Object.keys(e).filter(isDefinedKey,e)}function isDefinedKey(e){return void 0!==this[e]}let s="{ [native code] }";function previouslyCompared(e,t){let r=a.get(e);if(r){if(r.has(t))return!0}else a.set(e,r=new Set);return r.add(t),!1}},44592:function(e,t,r){r.d(t,{b:function(){return Trie}});let defaultMakeData=()=>Object.create(null),{forEach:n,slice:i}=Array.prototype,{hasOwnProperty:o}=Object.prototype;let Trie=class Trie{constructor(e=!0,t=defaultMakeData){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return n.call(e,e=>t=t.getChildTrie(e)),o.call(t,"data")?t.data:t.data=this.makeData(i.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r=u)return(console[e]||console.log).apply(console,arguments)}}function setVerbosity(e){var t=c[u];return u=Math.max(0,c.indexOf(e)),t}(n=invariant||(invariant={})).debug=wrapConsoleMethod("debug"),n.log=wrapConsoleMethod("log"),n.warn=wrapConsoleMethod("warn"),n.error=wrapConsoleMethod("error")},36054:function(e,t,r){function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r1,i=!1,o=arguments[1],a=o;return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})})},e.concat=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n=0&&i.splice(e,1),completeIfDone()}});i.push(o)},error:function(e){n.error(e)},complete:function(){completeIfDone()}});function completeIfDone(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},e[i]=function(){return this},Observable.from=function(e){var t="function"==typeof this?this:Observable;if(null==e)throw TypeError(e+" is not an object");var r=getMethod(e,i);if(r){var o=r.call(e);if(Object(o)!==o)throw TypeError(o+" is not an object");return o instanceof c&&o.constructor===t?o:new t(function(e){return o.subscribe(e)})}if(hasSymbol("iterator")&&(r=getMethod(e,n)))return new t(function(t){enqueue(function(){if(!t.closed){for(var n,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(e));!(n=i()).done;){var o=n.value;if(t.next(o),t.closed)return}t.complete()}})});if(Array.isArray(e))return new t(function(t){enqueue(function(){if(!t.closed){for(var r=0;r